﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace CantinhodaCegonha.Models.BingApi
{
    public class BingApiSearchResponse
    {
        public SearchResponse SearchResponse { get; set; }
    }

    public class SearchResponse
    {
        public float Version { get; set; }
        public Query Query { get; set; }
        public WebResponseType Web { get; set; }
    }

    public class Query
    {
        public string SearchTerms { get; set; }
    }

    public class WebResponseType
    {
        public int Total { get; set; }
        public int Offset { get; set; }
        public List<WebResult> Results { get; set; }

        public WebResponseType()
        {
            this.Results = new List<WebResult>();
        }
    }

    public class WebResult
    {
        public string Title { get; set; }
        public string Description { get; set; }
        public string Url { get; set; }
        public string CacheUrl { get; set; }
        public string DisplayUrl { get; set; }
        public DateTime DateTime { get; set; }
    }
}